/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.pdx.cs.guavalib;

import java.util.ArrayList;
import java.util.List;
import javax.swing.table.DefaultTableColumnModel;
import javax.swing.table.TableColumnModel;

/**
 *
 * @author VuTran
 */
public class GTableColumnModel extends DefaultTableColumnModel {
    List<GTableColumn> columns;

    public GTableColumnModel() {
        columns = new ArrayList<GTableColumn>();
    }

    public void addGColumn(GTableColumn col) {
        columns.add(col);
    }

    public void removeGColumn(GTableColumn col) {
        columns.remove(col);
    }

    public int getGColumnCount() {
        return columns.size();
    }

    public GTableColumn getGColumn(int i) {
        return columns.get(i);
    }
}
